package com.lu.constant;

/**
 * @author issuser
 * @ClassName ErrorEnum
 * @Descriptiond
 * @date 2021/07/13 09:17
 */

public enum ErrorEnum {

    /**成功*/
    SUCCESS("1000","成功"),
    /**失败*/
    FAIL("9999","失败"),

    /*技术校验类型*/
    /**参数为空*/
    PARAM_EMPTY("2001","参数为空"),

    /*业务类型*/
    /**玩家人数不能少于2*/
    MIN_PLAYER("3001","最少玩家数不能少于2"),
    GAME_NOT_EXIST("3002","游戏不存在"),
    BRANCH_NOT_EXIST("3003","子游戏不存在"),
    PLAYER_ILLEGAL("3004","您不属于当前游戏"),
    PRE_PLAYER_EMPTY("3005","上个玩家还未提交呢"),
    SUBMIT_REPEAT("3006","不可重复提交哦"),

    /*技术异常*/
    IMG_UPLOAD_ERROR("4001","图片上传失败"),



    ;

    public String code;
    public String desc;

    ErrorEnum(String code,String desc){
        this.code = code;
        this.desc = desc;
    }
}
